from base.java.exception.NullPointerException import NullPointerException


class Objects:
    def __init__(self):
        pass

    @staticmethod
    def requireNonNull(value, msg):
        if value is None:
            raise NullPointerException(msg)

    @staticmethod
    def equals(value, other):
        return value == other

    @staticmethod
    def hash(value):
        return hash(value)